//
//  UIImage+Resizing.swift
//  yq微信
//
//  Created by 杨庆 on 2018/1/15.
//  Copyright © 2018年 yq. All rights reserved.
//

import Foundation

extension UIImage{
    
    static func yq_resizingWithImage(img:UIImage) -> UIImage{
    
        let imgW  = img.size.width * 0.499
        let imgH = img.size.height * 0.499

       return img.resizableImage(withCapInsets: UIEdgeInsets(top: imgH, left: imgW, bottom: imgH, right: imgW), resizingMode: UIImageResizingMode.stretch)
    

}
}

